#ifndef PLAYER_H
#define PLAYER_H

#include "sprite.h"
#include <SDL.h>
#include <vector>

class Graphics;
class Level;

class Player
{
public:
	Player();
	Player(Graphics &G);
	void Update(float ElapsedTime, Level &L);
	void Draw(Graphics &G);
	void Still();
	void MoveRight();
	void MoveLeft();
	void Jump();
	std::vector<Sprite> Idle;
	std::vector<Sprite> Run;
	bool VCollide;
	bool Jumping;
	bool AllowJump;
	int X, Y;
private:
	int Status, NoCollide;
	int LastX, LastY;
	float Frame, HSpeed, VSpeed, JumpSpeed;
	SDL_RendererFlip SRL;
	SDL_Rect CR;
	SDL_Rect Offset;
};
#endif
